std::basic_string::data
From Cppreference
< cpp | string | basic string
| const CharT* data() const;
| ||
Returns pointer to the underlying array serving as character storage. Specifically the pointer is such that range [data(); data() + size()) is a valid.
Contents |
Parameters
(none)
Return value
pointer to the underlying character storage.
Complexity
constant.
See also
| accesses the first character (public member function) | ||
| accesses the last character (public member function) | ||
| returns a non-modifiable standard C character array version of the string (public member function) | ||